Unix - Engineering

Q1:

Which of the following commands is used to obtain a list of all files by modification time?

A ls -1

B ls -t

C ls -i

D ls -R

E None of the above

ANS:B - ls -t

-1: Displays each entry on a line.

-t: Displays newest files first (based on timestamp).

-R: Displays subdirectories as well.

-i: Displays the inode for each file.